package route

import (
	"github.com/gin-gonic/gin"
	"thread/api/handler"
	"thread/middleware"
)

func Route(c *gin.Engine) {

	c.POST("/post", handler.Post)
	c.POST("/login", handler.Login)
	c.Group("/api", middleware.JwtPare())
	c.GET("/sendSms", handler.SendSms)
}
